package com.ruoyi.common.enums.php;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 发卡响应码
 */
public enum OpenCardErrorCode {

    SUCCESS("0000", "成功"),
    SYSTEM_EXCEPTION("9999", "系统异常"),
    VCC1010("VCC1010", "交易金额超出您设置的单笔限额"),
    VCC1011("VCC1011", "交易金额超出您设置的日可用限额"),
    VCC1012("VCC1012", "交易金额超出您设置的月可用限额"),
    VCC1013("VCC1013", "此卡的可用交易限额不足，请先设置后再次发起交易"),
    VCC1014("VCC1014", "风险拒绝"),
    VCC1015("VCC1015", "可用金额不足，交易失败"),
    VCC1025("VCC1025", "您的光子易账户不可用，请联系你的客户经理了解详情。"),
    VCC1027("VCC1027", "渠道拦截"),
    VCC1028("VCC1028", "交易超时"),
    VCC1050("VCC1050", "交易拒绝"),
    VCC1054("VCC1054", "此卡为不可用状态，您不可进行此操作，请确认后重试。"),
    VCC1100("VCC1100", "失败终态确认"),
    VCC9999("VCC9999", "系统错误，请重试"),
    VCC2001("VCC2001", "卡的有效期错误"),
    VCC2002("VCC2002", "卡的 CVV 错误"),
    VCC2003("VCC2003", "不支持此类型的交易"),
    VCC2004("VCC2004", "交易国不被允许"),
    VCC2005("VCC2005", "卡交易异常，请检查后再试"),
    VCC2006("VCC2006", "卡已失效，交易拒绝"),
    VCC2007("VCC2007", "交易超限制"),
    VCC2008("VCC2008", "卡处于不可用状态"),
    VCC2009("VCC2009", "可用金额不足，请稍后再试"),
    VCC2010("VCC2010", "未知错误"),
    VCC2011("VCC2011", "请勿重复发起交易，请稍后再试"),
    VCC2012("VCC2012", "交易超时"),
    VCC2013("VCC2013", "交易被拒绝"),
    VCC2014("VCC2014", "交易可能存在风险，交易拒绝。"),
    VCC2015("VCC2015", "系统错误"),
    VCC2016("VCC2016", "卡信息有误，请确认后重试"),
    VCC2017("VCC2017", "交易信息有误，交易被拒绝"),
    VCC2018("VCC2018", "无效请求，交易拒绝"),
    VCC2019("VCC2019", "原始交易不存在，交易失败"),
    VCC2020("VCC2020", "AVS验证失败"),
    VCC2021("VCC2021", "交易金额无效"),
    VCC2022("VCC2022", "网络错误"),
    VCC3001("VCC3001", "系统错误，请重试。"),
    VCC3002("VCC3002", "用卡人手机号异常，请检查后重试。"),
    VCC3003("VCC3003", "请求频繁，请稍后再试。"),
    VCC3004("VCC3004", "开卡失败，请联系商户服务人员了解详情。"),
    VCC3005("VCC3005", "用卡人姓名有误，请检查后重试。"),
    VCC3006("VCC3006", "创建卡失败，请在 5-10 分钟后再次尝试创建此卡。"),
    VCC3007("VCC3007", "无法创建卡，请联系商户服务人员了解详情。"),
    VCC3008("VCC3008", "请求受限，请联系商户服务人员了解详情。"),
    VCC3009("VCC3009", "用卡人的账单地址中的详细地址有误，请检查后重试。"),
    VCC3010("VCC3010", "用卡人的账单地址中的邮编有误，请检查后重试。"),
    VCC3011("VCC3011", "用卡人的账单地址中的国家有误，请检查后重试。"),
    VCC3012("VCC3012", "用卡人的账单地址中的城市有误，请检查后重试。"),
    VCC3013("VCC3013", "您设置的币种账户可用金额不足无法开卡，请先转入后开卡。");

    private final String code;
    private final String description;

    OpenCardErrorCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

}
